import request from '@/utils/iasRequest'

export function saveStep(val) {
  let _url = '/host'
  if (val.id) {
    _url += '/updateStepInfo'
  } else {
    _url += '/addStep'
  }
  return request({
    url: _url,
    method: 'post',
    data: val
  })
}

export function deleteStep(val) {
  return request({
    url: '/host/delete',
    method: 'post',
    data: val
  })
}

export function updateStepOrder(val) {
  return request({
    url: '/host/updateStepOrder',
    method: 'post',
    data: val
  })
}
